5.0
MEDIUM CVSS 3.1
CVE-2024-43787
Hono CSRF middleware can be bypassed using crafted Content-Type header
Description

Hono is a Web application framework that provides support for any JavaScript runtime. Hono CSRF middleware can be bypassed using crafted Content-Type header. MIME types are case insensitive, but isRequestedByFormElementRe only matches lower-case. As a result, attacker can bypass csrf middleware using upper-case form-like MIME type. This vulnerability is fixed in 4.5.8.

INFO

Published Date :

Aug. 22, 2024, 3:15 p.m.

Last Modified :

Sept. 17, 2025, 8:34 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2024-43787 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Hono hono
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-43787.

URL Resource
https://github.com/honojs/hono/blob/b0af71fbcc6dbe44140ea76f16d68dfdb32a99a0/src/middleware/csrf/index.ts#L16-L17 Product
https://github.com/honojs/hono/commit/41ce840379516410dee60c783142e05bb5a22449 Patch
https://github.com/honojs/hono/security/advisories/GHSA-rpfr-3m35-5vx5 Exploit Vendor Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-43787 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-43787 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-43787 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-43787 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Sep. 17, 2025

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:* versions up to (excluding) 4.5.8
    Added Reference Type GitHub, Inc.: https://github.com/honojs/hono/blob/b0af71fbcc6dbe44140ea76f16d68dfdb32a99a0/src/middleware/csrf/index.ts#L16-L17 Types: Product
    Added Reference Type GitHub, Inc.: https://github.com/honojs/hono/commit/41ce840379516410dee60c783142e05bb5a22449 Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/honojs/hono/security/advisories/GHSA-rpfr-3m35-5vx5 Types: Exploit, Vendor Advisory
  • CVE Received by [email protected]

    Aug. 22, 2024

    Action Type Old Value New Value
    Added Description Hono is a Web application framework that provides support for any JavaScript runtime. Hono CSRF middleware can be bypassed using crafted Content-Type header. MIME types are case insensitive, but isRequestedByFormElementRe only matches lower-case. As a result, attacker can bypass csrf middleware using upper-case form-like MIME type. This vulnerability is fixed in 4.5.8.
    Added Reference GitHub, Inc. https://github.com/honojs/hono/security/advisories/GHSA-rpfr-3m35-5vx5 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/honojs/hono/commit/41ce840379516410dee60c783142e05bb5a22449 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/honojs/hono/blob/b0af71fbcc6dbe44140ea76f16d68dfdb32a99a0/src/middleware/csrf/index.ts#L16-L17 [No types assigned]
    Added CWE GitHub, Inc. CWE-352
    Added CVSS V3.1 GitHub, Inc. AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact